package com.hellogood.work.evaluate.shared.services;

import java.util.List;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.hellogood.work.evaluate.shared.po.Service;

@RemoteServiceRelativePath("ServiceService")
public interface ServiceService extends RemoteService {

	public static class Util {
		private static ServiceServiceAsync instance;

		public static ServiceServiceAsync getInstance() {
			if (instance == null) {
				instance = GWT.create(ServiceService.class);
			}
			return instance;
		}
	}

	public List<Service> getList();

	public int getTotalNumber();

	public String modify(Service service, boolean isModiy);

}
